import java.io.File;
import java.io.IOException;
import java.util.Collection;

import model.BCFisierText;
import model.BazaCunostinte;
import model.Regula;


public class ProgramPrincipal {

	public static void main(String[] args) {
		File fisierBC = new File("exemplu_baza_cunostinte.txt");
		BazaCunostinte bc = new BCFisierText(fisierBC);
		Collection<Regula> reguli;
		try {
			 reguli = bc.citesteReguli();
		} catch (IOException e) {
			System.out.println("EROARE CITIRE DIN BAZA DE CUNOSTINTE");
			e.printStackTrace();
			return;
		}
		
		for (Regula r : reguli)
			System.out.println(r);
		
		
	}
	
}
